<?php
class Group extends Model
{
    protected $_partialOrder = 'sort ASC,_pk DESC';

    public static function instance(){
        static $obj;
        if(!$obj) $obj = new self();
        return $obj;
    }

	/**
	 * 取虚拟角色ID
	 */
	public function getVirtualRoleId($group_id)
	{
        return $this->getCol($group_id, 'role_id');
	}

	public function getTitle($group_id)
	{
        return $this->getCol($group_id, 'title');
	}

}
?>
